package com.rajeshDyadav.datetime;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Example05 {
    public static void main(String args[]) throws ParseException {
	java.util.Date fromDateDtUTIL = null;
	java.sql.Date fromDateDtSQL = null;
	String fromDate = "14/05/13";
	SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
	
	System.out.println("DATE0 ..> " + fromDate);
	fromDateDtUTIL = sdf.parse(fromDate);
	System.out.println("DATE1 ..> " + fromDateDtUTIL);
	fromDateDtSQL = new java.sql.Date(fromDateDtUTIL.getTime());
	System.out.println("DATE2 ..> " + fromDateDtSQL);
    }
}
